<?php
class Model_Node extends Table_Node {
    function view($nid) {
        $node = $this->findByField('nid', (int) $nid);
        return $node;
    }
    function viewAll() {
        $nodes = $this->findAll();
        return $nodes;
    }

}